//#include <QtGui/QApplication>
//#include "qmlapplicationviewer.h"

//Q_DECL_EXPORT int main(int argc, char *argv[])
//{
//    QScopedPointer<QApplication> app(createApplication(argc, argv));

//    QmlApplicationViewer viewer;
//    viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockPortrait);
//    viewer.setMainQmlFile(QLatin1String("qml/studyAid/main.qml"));
//    viewer.showExpanded();

//    return app->exec();
//}


#include <QtGui>
#include <QtDeclarative>
#include "qmlapplicationviewer.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    app.processEvents();
    QmlApplicationViewer viewer;
    viewer.setMainQmlFile(QLatin1String("qml/studyAid/main.qml"));
    viewer.showExpanded();

    app.processEvents();

    qDebug() << "storage location: " << viewer.engine()->offlineStoragePath();

    return app.exec();
}
